package cn.hnc.checkapi.bean.node;

import javax.validation.constraints.NotNull;

public class receptionValueRequest {
   private @NotNull(
   message = "订单ID不能为空"
) Long orderId;
   private @NotNull(
   message = "模板ID不能为空"
) Long mouldId;

   public Long getOrderId() {
      return this.orderId;
   }

   public Long getMouldId() {
      return this.mouldId;
   }

   public void setOrderId(final Long orderId) {
      this.orderId = orderId;
   }

   public void setMouldId(final Long mouldId) {
      this.mouldId = mouldId;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof receptionValueRequest)) {
         return false;
      } else {
         receptionValueRequest other = (receptionValueRequest)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$orderId = this.getOrderId();
            Object other$orderId = other.getOrderId();
            if (this$orderId == null) {
               if (other$orderId != null) {
                  return false;
               }
            } else if (!this$orderId.equals(other$orderId)) {
               return false;
            }

            Object this$mouldId = this.getMouldId();
            Object other$mouldId = other.getMouldId();
            if (this$mouldId == null) {
               if (other$mouldId != null) {
                  return false;
               }
            } else if (!this$mouldId.equals(other$mouldId)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof receptionValueRequest;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = 1;
      Object $orderId = this.getOrderId();
      result = result * 59 + ($orderId == null ? 43 : $orderId.hashCode());
      Object $mouldId = this.getMouldId();
      result = result * 59 + ($mouldId == null ? 43 : $mouldId.hashCode());
      return result;
   }

   public String toString() {
      return "receptionValueRequest(orderId=" + this.getOrderId() + ", mouldId=" + this.getMouldId() + ")";
   }
}
